package com.cskaoyan.controller;


import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.vo.ZYL_admin_orderVO;
import com.cskaoyan.service.MarketGoods_zyl_Service;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin/order")
public class ZylCommoditymanagementController_admin_order {

    @Autowired
    MarketGoods_zyl_Service marketGoodsZylService;

    @PostMapping("reply")
    public BaseRespVo reply(@RequestBody ZYL_admin_orderVO zyl_admin_orderVO) {
        BaseRespVo baseRespVo = new BaseRespVo();
        try {
            int i = marketGoodsZylService.setContent_zyl(zyl_admin_orderVO);
            baseRespVo.setErrno(0);
            baseRespVo.setErrmsg("成功");
        }catch (Exception e){
            baseRespVo.setErrno(404);
            baseRespVo.setErrmsg("失败");
        }finally {
            return baseRespVo;
        }
    }
}
